<script setup lang="ts">
definePageMeta({
  middleware:'is-login'
})

onMounted(function (): void {
  let role:string = roleStore().getRole()
  if(role==='1'){
    navigateTo('/home/driver')
  }else{
    roleStore().setRole('0')
    navigateTo('/home/passenger')
  }
})

</script>
<template></template>